<?php
session_start();
set_include_path('C:\xampp\htdocs\ccivenezuela\includes');
// <editor-fold defaultstate="collapsed" desc="iniciando variables">
$root = null;
$host = null;
$user = null;
$password = null;
$db = null;
$server_root = null;
$entorno = null;
$imprimir = false;
$email = false;
// </editor-fold>
// <editor-fold defaultstate="collapsed" desc="Comprobación de servidor">
if ($_SERVER['SERVER_NAME'] == 'localhost') {
    $root = "http://" . $_SERVER['SERVER_NAME'] . "/CCIVenezuela";
    $host = "localhost";
    $user = "root";
    $password = "root";
    $db = "ccivenezuela";
    $server_root = $_SERVER['DOCUMENT_ROOT'] . "/CCIVenezuela";
    $entorno = 'desarrollo';
    $imprimir = true;
    error_reporting(E_ALL);
} elseif ($_SERVER['SERVER_NAME'] == 'ccivenezuela.com' || $_SERVER['SERVER_NAME'] == 'www.ccivenezuela.com') {
    $host = 'host.chcluster3.com';
    $db = "ccivenez_ccivenezuelas";
    $user = "ccivenez_admin";
    $password = "Admin_cci_venezuela";
    $root = "http://" . $_SERVER['SERVER_NAME'];
    $server_root = $_SERVER['DOCUMENT_ROOT'];
    $entorno = 'produccion';
    $email = true;
} else {
    $email = true;
    $imprimir = true;
    $root = "http://" . $_SERVER['SERVER_NAME'];
    $host = "localhost";
    $user = "root";
    $password = "root";
    $db = "ccivenezuela";
    $server_root = "";
    $entorno = 'pruebas';
}
// </editor-fold>
// <editor-fold defaultstate="collapsed" desc="definiendo constantes">
define("IMPRIMIR_ERRORES", $imprimir);
define("EMAIL_ERRORES", $email);
define('ENTORNO', $entorno);
define("ROOT", $root);
define("HOST", $host);
define("USER", $user);
define("PASSWORD", $password);
define("DB", $db);
define("SERVER_ROOT", $server_root);
define("FOTOS_INMUEBLES", 8);
define("IMAGES", "/images/");
define("IMAGES_INMUEBLES", "/images/inmuebles/");
define("IMAGES_USUARIOS", "/images/usuarios/");
define("IMAGES_ADS", "/images/publicidad/");
define("INMUEBLES", "/inmuebles/");
define("USUARIOS", "/usuarios/");
define("ADS", "/ads/");
date_default_timezone_set('America/Caracas');
// </editor-fold>
if (isset($_GET['logout']) && $_GET['logout']) {
    require 'usuario.php';
    $usuario = new usuario();
    $usuario->log_Out();
}
?>